package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.*;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrederSettingMobileMapper {

    /**
     * 查询全部数据
     * @return
     */
    @Select("select * from t_ordersetting ")
    List<OrderSetting> list();

    /**
     * 根据准确日期查询
     * @param orderDate
     * @return
     */
    @Select("select * from t_ordersetting where orderDate = #{orderDate}")
    OrderSetting getByDate(@Param("orderDate") Date orderDate);

    /**
     * 修改数据
     */
    void update(OrderSetting orderSetting);


}
